let Mock = require("mockjs")


Mock.mock("/getShopData", "get", {
    "shopDataArr|10-20": [{
        "id|+1": 1, //id
        "checked": true, //每个商品选中状态
        "num": 1, //商品数量
        "dpName": "欧莱雅官方旗舰店", //商品店铺  
        "imgSrc": `../../static/images/goodthimg/tj@integer(1, 12).jpg`, //商品图片
        "title": "茶树植萃系列去屑精油洗护套装", //商品标题
        "curtPrice|50-100": 59.9, //当前价格
        "oldPrice|120-200": 79.9, //旧的价格
        "datas":[{
            "num": 1, //商品数量
            "title": "欧莱雅茶树植萃系列去屑精油洗护套装,滋润肌肤，你值得拥有！", //详情标题
            "curtPrice|50-100": 59.9, //当前价格
            "oldPrice|120-200": 79.9, //旧的价格
        }],  
        "curtShopDetail": { //详情数据
            "bannerImgs": [ //轮播图
                "../../static/images/cart/clothes01.jpg",
                "../../static/images/cart/clothes02.jpg",
                "../../static/images/cart/clothes03.jpg",
                "../../static/images/cart/clothes04.jpg",
                "../../static/images/cart/clothes05.jpg",
            ],
            "parameter":  //产品参数
                [
                    {
                        "title":"品牌",
                        "type":"欧莱雅"
                    },
                    {
                        "title":"型号",
                        "type|1000-9999":376
                    },
                    {
                        "title":"材质",
                        "type":"85%植物精华15%天然活性因子"
                    }
                ],
            "selectShopType": { //选择类型
                "dpName": "欧莱雅官方旗舰店", //商品店铺 
                "title": "欧莱雅茶树植萃系列去屑精油洗护套装，和污渍说拜拜！", //标题
                "types": [{
                        "ctype": "300g+100g天然沐浴露", //型号
                        "price|50-100.1-2": 50.00, //价格
                        "totalCount|130-5000": 324, //库存
                        "cShopImgSrc": "../../static/images/cart/clothes01.jpg" //商品图
                    },
                    {
                        "ctype": "500g天然沐浴露",
                        "price|50-100.1-2": 50.00,
                        "totalCount|130-5000": 324,
                        "cShopImgSrc": "../../static/images/cart/clothes02.jpg"
                    },
                    {
                        "ctype": "1000g去屑精油洗护套装",
                        "price|50-100.1-2": 50.00,
                        "totalCount|130-5000": 324,
                        "cShopImgSrc": "../../static/images/cart/clothes03.jpg"
                    }
                ]
            }
        }
    }]
})